export const COMPREIFX = "yqd-";
export const INDENTIFICATION = {
  BASIC: "basic", //基础组件
  CUS_FORM: "cus-form", //自定义表单组件
  BUSINESS: "business", //业务组件
  OTHER: "other", //其他组件
  ONLY: "only", //唯一组件
  FORM_MODAL: "form-modal", //表单模块
  DESC_MODAL: "desc-modal", //装修模块
  PAGE_MODAL: "page-modal", //微页面
  PAGE_FORM_MODAL: "page-form-modal", //自定义表单
};

export const INDENTIFICATION_TEXT = {
  BASIC: "基础组件", //基础组件
  CUS_FORM: "基础组件", //自定义表单组件
  BUSINESS: "业务组件", //业务组件
  OTHER: "其他组件", //其他组件
  ONLY: "唯一组件", //唯一组件
  FORM_MODAL: "表单模块", //表单模块
  DESC_MODAL: "装修模块", //装修模块
  PAGE_MODAL: "微页面", //微页面模块
  PAGE_FORM_MODAL: "自定义表单", //自定义表单
};

// `module_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '模块类型:1表单;2装修',
export const MODULE_TYPE = {
  DESC_MODAL: 2,
  FORM_MODAL: 1,
};

//页面启用状态
export const PAGE_STATUS = {
  ON: 1,
  OFF: 0,
};
export const PAGE_STATUS_TEXT = {
  [PAGE_STATUS.ON]: "开启",
  [PAGE_STATUS.OFF]: "关闭",
};

//操作状态
export const OPERATION_TYPE = {
  ADD: "add",
  COPY: "copy",
  EDIT: "edit",
};

export const NAVIGATE_TYPE = {
  SELF: "self", //应用本身
  OUTSIDE: "outside", //外链
  SERVICE_CHAT: "serviceChat", //企业客服
};

export const PAGE_TEMPLATE = {
  page_id: "",
  style: {
    backgroundImage: "",
    backgroundColor: "rgba(255,255,255,1)",
    backgroundRepeat: "no-repeat",
    backgroundSize: "auto",
    fontSize: "14px",
    color: "#000000",
    position: "relative",
  },
  sign: INDENTIFICATION.PAGE_MODAL,
  attribute: {
    title: "",
    desc: "",
    shotCover: "",
  },
  items: [],
  events: {},
};

export const NAVIGATE_PARAMS = {
  navigateType: "",
  path: "", // 内链地址
  url: "", // 外链地址
  serviceChatUrl: "", //企业客服
  serviceChatID: "", //企业ID
};
